package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购订单对象 mes_buy_ord
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
public class MesBuyOrd extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购订单id */
    private Integer id;

    /** 采购订单编号 */
    @Excel(name = "采购订单编号")
    private String buyOrdId;

    /** 采购订单名称 */
    @Excel(name = "采购订单名称")
    private String buyOrdName;

    /** 物料需求单编号 */
    @Excel(name = "物料需求单编号")
    private String needId;

    /** 订单状态(0未到货/1已到货) */
    @Excel(name = "订单状态(0未到货/1已到货)")
    private Long buyOrdStatus;

    /** 原料编码 */
    @Excel(name = "原料编码")
    private String matId;

    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long needMatNum;

    /** 采购时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyOrdTime;

    /** 到货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "到货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date arrivTime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setBuyOrdId(String buyOrdId) 
    {
        this.buyOrdId = buyOrdId;
    }

    public String getBuyOrdId() 
    {
        return buyOrdId;
    }
    public void setBuyOrdName(String buyOrdName) 
    {
        this.buyOrdName = buyOrdName;
    }

    public String getBuyOrdName() 
    {
        return buyOrdName;
    }
    public void setNeedId(String needId) 
    {
        this.needId = needId;
    }

    public String getNeedId() 
    {
        return needId;
    }
    public void setBuyOrdStatus(Long buyOrdStatus) 
    {
        this.buyOrdStatus = buyOrdStatus;
    }

    public Long getBuyOrdStatus() 
    {
        return buyOrdStatus;
    }
    public void setMatId(String matId) 
    {
        this.matId = matId;
    }

    public String getMatId() 
    {
        return matId;
    }
    public void setNeedMatNum(Long needMatNum) 
    {
        this.needMatNum = needMatNum;
    }

    public Long getNeedMatNum() 
    {
        return needMatNum;
    }
    public void setBuyOrdTime(Date buyOrdTime) 
    {
        this.buyOrdTime = buyOrdTime;
    }

    public Date getBuyOrdTime() 
    {
        return buyOrdTime;
    }
    public void setArrivTime(Date arrivTime) 
    {
        this.arrivTime = arrivTime;
    }

    public Date getArrivTime() 
    {
        return arrivTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buyOrdId", getBuyOrdId())
            .append("buyOrdName", getBuyOrdName())
            .append("needId", getNeedId())
            .append("buyOrdStatus", getBuyOrdStatus())
            .append("matId", getMatId())
            .append("needMatNum", getNeedMatNum())
            .append("buyOrdTime", getBuyOrdTime())
            .append("arrivTime", getArrivTime())
            .toString();
    }
}
